import {
	defineStore,
} from 'pinia';

import {
	ref,
} from 'vue';
export const useUserStore = defineStore('user', () => {
	const token = ref('');


	const redirectURL = ref('/pages/index/index');

	const openType = ref('switchTab');
	// const increment = () => {
	// 	count.value += 1;
	// };
	// const excremnt = () => {
	// 	count.value -= 1;
	// };
	return {
		token,
		redirectURL,
		openType,

	};
}, {
	// persist: true,
	persist: {
		paths: ['token', 'redirectURL', 'openType'],
	},
});
